package com.zxkj.Exception;

import com.zxkj.support.ResultCode;
import lombok.Getter;

/**
 * @author: yaoxin
 * @Date: 2021/12/10 - 12 - 10 - 10:15
 * @Description: com.zxkj.Exception.handle
 * @version: 1.0
 */
@Getter
public class HrgException extends RuntimeException {

    private Integer status;

    private String data;

    public HrgException(ResultCode resultCode, String msg) {
        super(msg);
        this.status = resultCode.code;
    }

    public HrgException(ResultCode resultCode, String msg, String data) {
        super(msg);
        this.status = resultCode.code;
        this.data = data;
    }
}